package com.leased.pojo;

import com.leased.request.BaseEntity;
import java.util.Date;

public class CLocation extends BaseEntity {
    private Integer lId;

    private Integer userId;

    private Integer loginTypeId;

    private Date loginTime;

    private Double longitude;

    private Double latitude;

    private String locateAddress;

    private String locateCity;

    public Integer getlId() {
        return lId;
    }

    public void setlId(Integer lId) {
        this.lId = lId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getLoginTypeId() {
        return loginTypeId;
    }

    public void setLoginTypeId(Integer loginTypeId) {
        this.loginTypeId = loginTypeId;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getLocateAddress() {
        return locateAddress;
    }

    public void setLocateAddress(String locateAddress) {
        this.locateAddress = locateAddress == null ? null : locateAddress.trim();
    }

    public String getLocateCity() {
        return locateCity;
    }

    public void setLocateCity(String locateCity) {
        this.locateCity = locateCity == null ? null : locateCity.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CLocation other = (CLocation) that;
        return (this.getlId() == null ? other.getlId() == null : this.getlId().equals(other.getlId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getLoginTypeId() == null ? other.getLoginTypeId() == null : this.getLoginTypeId().equals(other.getLoginTypeId()))
            && (this.getLoginTime() == null ? other.getLoginTime() == null : this.getLoginTime().equals(other.getLoginTime()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getLocateAddress() == null ? other.getLocateAddress() == null : this.getLocateAddress().equals(other.getLocateAddress()))
            && (this.getLocateCity() == null ? other.getLocateCity() == null : this.getLocateCity().equals(other.getLocateCity()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getlId() == null) ? 0 : getlId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getLoginTypeId() == null) ? 0 : getLoginTypeId().hashCode());
        result = prime * result + ((getLoginTime() == null) ? 0 : getLoginTime().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getLocateAddress() == null) ? 0 : getLocateAddress().hashCode());
        result = prime * result + ((getLocateCity() == null) ? 0 : getLocateCity().hashCode());
        return result;
    }
}